package homework.day08;

import homework.day08.bean.Animal;
import homework.day08.bean.Cat;
import homework.day08.bean.Bird;
import homework.day08.bean.Dog;

/**
 * @author ThinkBook
 */
public class Test02 {
    public static void main(String[] args) {
        Animal cat = new Cat("tom", "灰⽩");
        Animal dog = new Dog("旺财", 5);
        Animal bird = new Bird("樱桃", 21.76);
        cat.makeSound();//猫发出喵喵叫声
        cat.move();//猫在四腿爬⾏
        dog.makeSound();//狗发出汪汪叫声
        dog.move();//狗在四腿奔跑
        bird.makeSound();//⻦发出啾啾叫声
        bird.move();//⻦在⻜翔
    }
}
